import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
export default new Router({
  routes: [
    { path: "/", redirect: "/login" },
    {
      path: "/login",
      component: () => import("@/views/Login.vue"),
    },
    {
      path: "/home",
      component: () => import("@/views/Home.vue"),
      redirect: "/home",
      children: [
        {
          path: "/home",
          component: () => import("@/views/home/home.vue"),
          meta: { title: "工作台" },
        },
        {
          path: "/tj/mzjc",
          component: () => import("@/views/tj/mzjc.vue"),
          meta: { title: "门诊决策分析系统" },
        },
        {
          path: "/tj/sshzrc",
          component: () => import("@/views/tj/sshzrc.vue"),
          meta: { title: "门诊动态管理" },
        },
        {
          path: "/tj/mzhzyy",
          component: () => import("@/views/tj/mzhzyy.vue"),
          meta: { title: "门诊患者预约" },
        },
        {
          path: "/tj/gzfhgl",
          component: () => import("@/views/tj/gzfhgl.vue"),
          meta: { title: "工作负荷管理" },
        },
        {
          path: "/tj/ysgzl",
          component: () => import("@/views/tj/ysgzl.vue"),
          meta: { title: "医生工作量管理" },
        },
        {
          path: "/tj/hzfdgl",
          component: () => import("@/views/tj/hzfdgl.vue"),
          meta: { title: "患者负担管理" },
        },
        {
          path: "/tj/cwsyqk",
          component: () => import("@/views/tj/cwsyqk.vue"),
          meta: { title: "床位使用情况" },
        },
        {
          path: "/tj2/hlyyjczb",
          component: () => import("@/views/tj2/hlyyjczb.vue"),
          meta: { title: "合理用药监测指标" },
        },
        {
          path: "/tj2/hlyyjczb2",
          component: () => import("@/views/tj2/hlyyjczb2.vue"),
          meta: { title: "合理用药监测指标(季度)" },
        },
        {
          path: "/tj2/zzyxzljczb",
          component: () => import("@/views/tj2/zzyxzljczb.vue"),
          meta: { title: "重症医学质量监测指标" },
        },
        {
          path: "/tj2/dbzzbbb",
          component: () => import("@/views/tj2/dbzzbbb.vue"),
          meta: { title: "单病种指标报表" },
        },
        {
          path: "/tj2/mzlzb",
          component: () => import("@/views/tj2/mzlzb.vue"),
          meta: { title: "麻醉类指标" },
        },
        {
          path: "/tj2/shbfzzb",
          component: () => import("@/views/tj2/shbfzzb.vue"),
          meta: { title: "术后并发症与患者安全指标" },
        },
        {
          path: "/tj2/zbsslzb2",
          component: () => import("@/views/tj2/zbsslzb2.vue"),
          meta: { title: "重点手术类指标" },
        },
        {
          path: "/tj2/zyzdjblzb",
          component: () => import("@/views/tj2/zyzdjblzb.vue"),
          meta: { title: "重点手术类指标" },
        },
        {
          path: "/tj2/zbsslzb",
          component: () => import("@/views/tj2/zbsslzb.vue"),
          meta: { title: "重点手术类指标" },
        },
        {
          path: "/tj2/zycwxxck",
          component: () => import("@/views/tj2/zycwxxck.vue"),
          meta: { title: "住院床位信息查看" },
        },
      ],
    },
  ],
});
